package com.sgl.controller;

import com.sgl.util.StringSingUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.HashMap;
import java.util.Map;

@Controller
@RequestMapping("/bgManage")
public class CallBack {
    private static final Log log = LogFactory.getLog(StringSingUtils.class);

    public final String key ="87b03a5a29c84522b7ff86f8579af394";

    /**
     * 用户请求登陆 跳转到登陆页面
     * @param nickname
     * @param password
     * @param model
     * @return
     */
    @RequestMapping("/login")
    public String tetet(String nickname, String password,Model model){

        Map<String, String> parameters = new HashMap<>();
        //开始创建下单球请求
        parameters.put("nickname",nickname);
        parameters.put("password",password);//商户订单号,必须唯一

        model.addAttribute("paramMap",parameters);

        return "user/login-page";
    }


}
